package router

import (
	"hema-fresh/handler"

	"github.com/gin-gonic/gin"
)

func Init() *gin.Engine {
	r := gin.Default()
	r.POST("/user/login", handler.UserLogin)
	r.POST("/rodenode/add", handler.RodeNodeAdd)
	r.POST("/goodsAdd", handler.GoodsAdd)
	r.POST("/orderAdd", handler.OrderAdd)
	r.GET("/goods/order", handler.GoodsOrder)
	r.GET("/detail", handler.Detail)

	return r
}
